class MyModel{
  int counter = 0;

  MyModel({this.counter = 0});

  Future<void> incrementCounter() async{
    await Future.delayed(Duration(seconds: 2));
    counter++;
    print(counter);

  }
}